
<template>
加载后{{state}}
</template>
<script lang="ts">
import {defineComponent,ref} from 'vue'
export default defineComponent({
  name:"AsyncComponent",
  setup() {
    return new Promise((resolve,reject)=> {
      setTimeout(()=> {
        resolve({result:"yuanxi",state:"suspense"})
      },2000)
    })
  }
})
</script>